const mongoose =require('mongoose')

const db=require('../../config/db')
//连接数据库
mongoose.connect(db.host,db.opts)

module.exports=mongoose